{include file="public/header" /}
<body>

<div class="layui-fluid">
    <div class="layui-card" >
		<div class="layui-card-header">添加文章</div>
      

        <form class="layui-form" action="" id="form1" lay-filter="form1" style="padding-top:10px;">
            
            
  <div class="layui-row" >
    <div class="layui-col-xs6">
      
	<div class="layui-form-item">
		<label class="layui-form-label">一级分类</label>
		<div class="layui-input-inline">
			<select name="oabidcategorys_id" id="oabidcategorys_id" lay-filter="oabidcategorys_id"></select>
<script>loadselect("{:url('loadclass')}?v="+Math.random(),'oabidcategorys_id','oa_bid_category','',1,'id','');</script>

		</div>
	</div>

    </div>
    <div class="layui-col-xs6">
		<div class="layui-form-item">
			<label class="layui-form-label">二级分类</label>
			<div class="layui-input-inline">
				<select name="oabidcategorys_id2" id="oabidcategorys_id2" lay-filter="oabidcategorys_id2"></select>
<script>loadselect("{:url('loadclass')}?v="+Math.random(),'oabidcategorys_id2','oa_bid_category','',0,'id','');</script>

			</div>
		</div>
    </div>
  </div>
  
  

  <div class="layui-row" >
    <div class="layui-col-xs6">
      
	<div class="layui-form-item">
		<label class="layui-form-label">发布日期</label>
		<div class="layui-input-inline">
			
<input type="text" class="layui-input" lay-verify="required" id=start_time name=start_time placeholder="">
    <SCRIPT>
        layui.use(['laydate', 'jquery'], function(){
			var $ = layui.$
				,laydate = layui.laydate;
			laydate.render({
				elem: '#start_time'
				,type: 'datetime'
			  });
		});
    </SCRIPT>


		</div>
	</div>

    </div>
    <div class="layui-col-xs6">
		<div class="layui-form-item">
			<label class="layui-form-label">截止时间</label>
			<div class="layui-input-inline">
				
<input type="text" class="layui-input" lay-verify="required" id=end_time name=end_time placeholder="">
    <SCRIPT>
        layui.use(['laydate', 'jquery'], function(){
			var $ = layui.$
				,laydate = layui.laydate;
			laydate.render({
				elem: '#end_time'
				,type: 'datetime'
			  });
		});
    </SCRIPT>


			</div>
		</div>
    </div>
  </div>
  
  

  <div class="layui-row" >
    <div class="layui-col-xs6">
      
	<div class="layui-form-item">
		<label class="layui-form-label">项目名称</label>
		<div class="layui-input-inline">
			<input type="text" id="mark_name" name="mark_name" lay-verify="required" autocomplete="off" class="layui-input">
		</div>
	</div>

    </div>
    <div class="layui-col-xs6">
		<div class="layui-form-item">
			<label class="layui-form-label">招标标号</label>
			<div class="layui-input-inline">
				<input type="text" id="mark_number" name="mark_number" lay-verify="required" autocomplete="off" class="layui-input">
			</div>
		</div>
    </div>
  </div>
  
  

  <div class="layui-row" >
    <div class="layui-col-xs6">
      
	<div class="layui-form-item">
		<label class="layui-form-label">招标联系人</label>
		<div class="layui-input-inline">
			<input type="text" id="linkman" name="linkman" lay-verify="required" autocomplete="off" class="layui-input">
		</div>
	</div>

    </div>
    <div class="layui-col-xs6">
		<div class="layui-form-item">
			<label class="layui-form-label">招标联系电话</label>
			<div class="layui-input-inline">
				<input type="text" id="moblie" name="moblie" lay-verify="required" autocomplete="off" class="layui-input">
			</div>
		</div>
    </div>
  </div>
  
  

  <div class="layui-row" >
    <div class="layui-col-xs6">
      
	<div class="layui-form-item">
		<label class="layui-form-label">招标文件</label>
		<div class="layui-input-inline">
			
<div class="layui-upload-drag" id="mark_file_upload1">
  <i class="layui-icon"></i>
  <p>点击上传，或将文件拖拽到此处</p>
  <div class="layui-hide" id="mark_file_uploadDemoView">
    <hr>
    <img src="" alt="上传成功后渲染" style="max-width: 196px">
  </div>
  <input type="hidden" name=mark_file id=mark_file value=""  >
</div>
<SCRIPT>
	layui.use(['upload', 'jquery'], function(){
		var $ = layui.$
			,upload = layui.upload;
		//拖拽上传
		  upload.render({
			elem: '#mark_file_upload1'
			,url: uploadimgurl //改成您自己的上传接口
			,exts:'png|jpg|gif|jpeg|doc|docx|xls|xlsx|pdf|zip|cert|txt|pem|mp4'
			,done: function(res){
				console.log(res)
			  layer.msg('上传成功');
			  $('#mark_file').val(res.data)
			  layui.$('#mark_file_uploadDemoView').removeClass('layui-hide').find('img').attr('src', res.data);
			}
		  });
	});
</SCRIPT>


		</div>
	</div>

    </div>
    <div class="layui-col-xs6">
		<div class="layui-form-item">
			<label class="layui-form-label">备注</label>
			<div class="layui-input-inline">
				﻿<textarea id="remarks" name="remarks" style="width:500px;height:300px;" class="layui-textarea"></textarea>

			</div>
		</div>
    </div>
  </div>
  
  


            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="submit" class="layui-btn" lay-submit="" lay-filter="savedata">确认添加</button>
                </div>
            </div>
        </form>

    </div>

</div>

      {include file="public/footer" /}
      <script>
			var uploadimgurl = "{:url('/comm/upload/uploadimg')}";
      </script>
      <script src="__SKIN__/js/jmzhfsconfiguploadform.js?v=1.222"></script>
  
      <script type="text/javascript">


            $(function () {
                  formsubmit('form1',"{$addurl}");
            });

			
		
			layui.use(['form', 'layer','element','jquery'], function(){
				var $ = layui.$
					,form = layui.form;

			});
			
	
      </script>
<style>

    /* 每列表单过多，防止窜行，缩小宽度 */
    .layui-form-label{
       padding: 9px 10px;
    }
    
</style> 
</body>


</html>